package com.sanyang.lawyer.mapper.hr;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanyang.lawyer.entity.HrFlexigrid;
import com.sanyang.lawyer.entity.Hr_emp;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HrEmpMapper extends BaseMapper<Hr_emp> {

   public Hr_emp getByid(int id);

   //根据name查询
   public List<Hr_emp> getByEmpName(String empName);


   public List<Hr_emp> listALL(Hr_emp hr_emp);


   @Select("select emp_id,emp_name from hr_emp")
   @ResultType(Hr_emp.class)
   public List<Hr_emp> selectList();

   public void updatestate(int empId);

   List<Hr_emp> listALLPage(HrFlexigrid hrFlexigrid);

   Integer listALLCount(Hr_emp emp);

   //w+
   public List<Hr_emp> empquery();
   //w+模糊查询
   public List<Hr_emp> empfruyy(String empname);
   //w+模糊查询
   public List<Hr_emp> empfy(String empname);

   //f+
   public List<Hr_emp> getByName();

}
